package club.banyuan;

public class IllegalInputException extends CalculatorException{
    private String exceptionType;

    public IllegalInputException(String exceptionType) {
        this.exceptionType = exceptionType;
    }

    public IllegalInputException(String message, String exceptionType) {
        super(message);
        this.exceptionType = exceptionType;
    }

    public IllegalInputException(String message, Throwable cause, String exceptionType) {
        super(message, cause);
        this.exceptionType = exceptionType;
    }

    public IllegalInputException(Throwable cause, String exceptionType) {
        super(cause);
        this.exceptionType = exceptionType;
    }

    public IllegalInputException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String exceptionType) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.exceptionType = exceptionType;
    }

    public String getExceptionType() {
        return exceptionType;
    }

    public void setExceptionType(String exceptionType) {
        this.exceptionType = exceptionType;
    }
}
